package com.pearadmin.pro.modules.school.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pearadmin.pro.common.web.base.page.PageResponse;
import java.util.List;

import com.pearadmin.pro.modules.school.domain.DisciplineCategory;

import com.pearadmin.pro.modules.school.dto.DisciplineCategoryDTO;
import com.pearadmin.pro.modules.school.param.DisciplineCategoryRequest;

/**
 * 学科类别Service接口
 * @author ChenJian
 * @date 2021-08-29
 */
public interface DisciplineCategoryService extends IService<DisciplineCategory>
{
    /**
    * 获取查询学科类别列表 (分页)
     *
     * @param request 参数实体
    *
    * @return {@link DisciplineCategory}
    * */
    PageResponse< DisciplineCategory> page(DisciplineCategoryRequest request);

    List<DisciplineCategory> List(DisciplineCategoryRequest request);

    /**
     * 类别树
     * @return
     */
    List<DisciplineCategoryDTO> tree();
    /**
     * 查询学科类别
     *
     * @param id 学科类别ID
     * @return 学科类别
     */
    DisciplineCategoryDTO selectDisciplineCategoryById(Long id);

}
